﻿using System.Collections.Generic;
using System.Windows.Media;
using System;
using System.Reflection;

namespace Shrestha.Trigraph
{
    public class TriGraphResources
    {
        //public static string tableName = " pedestrian ";
        //public static string latName = " Lat ";
        //public static string lngName = " Lng ";
        //public static string timeName = " EventDate ";
        //public static string baseName = "pedestrian";
        public const int DEFAULT_ZOOM_LEVEL = 1000;

        public static int GROUP_NUMBER = 15;

        public static string database { get; set; }
        public static string user { get; set; }
        public static string password { get; set; }
        public static string host { get; set; }


        public static string tableName { get; set; }

        public static string latName { get; set; }
        public static string lngName { get; set; }
        public static string timeName { get; set; }
        public static string groupName { get; set; }
        public static List<string> rowNames { get; set; }

        //public static List<KeyValuePair<string, Brush>> groupList { get; set; }
        public static Dictionary<string,Brush> groupList { get; set; }


        public static string clusterLatName = "lat";
        public static string clusterLngName = "lng";
        public static string clusterDateName = "date";

        public static string ClusterSearchTune = "250";

        public static Brush RandomBrush()
        {
            Brush result = Brushes.Transparent;
            Random rnd = new Random();
            Type brushesType = typeof(Brushes);
            PropertyInfo[] properties = brushesType.GetProperties();
            result = (Brush)properties[rnd.Next(properties.Length)].GetValue(null, null);
            return result;
        }
                
        
    }
}
